package ylsb.dao;

import java.util.List;
import java.util.Map;

import org.apache.ibatis.annotations.Param;
import ylsb.model.Haocaiyinjin;
import ylsb.model.HaocaiyinjinExample;

public interface HaocaiyinjinMapper {
    List<Map<String, Object>> findPinzhongAll(@Param("xiangmuid") String ppxiangmuId,  @Param("startindex") int ppStartIndex, @Param("pagesize") int ppPageSize);

    List<Map<String, Object>> findDaochuPinzhongAll(@Param("xiangmuid") String ppxiangmuId);

    List<Map<String, Object>> findPinpaiByPinzhong(@Param("pinzhong")String ppPinzhongOne);

    List<Map<String, Object>> findPinpaiResultByPinzhong(@Param("xiangmuid")String ppxiangmuId,@Param("userid")String ppuserId,@Param("pinzhong")String ppPinzhongOne);

    List<Map<String, Object>> findPinpaiFenlei(@Param("pinzhong")String ppPinzhongOne);

    List<Map<String, Object>> findXinghaoByPinpai(@Param("pinzhong")String ppPinzhongOne,@Param("pinpai")String ppPinpaiOne);

    List<Map<String, Object>> findXinghaoJieguoByPinpai(@Param("pinzhong")String ppPinzhongOne,@Param("pinpai")String ppPinpaiOne,@Param("xiangmuid")String ppxiangmuId,@Param("userid")String ppuserId);

    List<Map<String, Object>> selectByXiangmuId(@Param("xiangmuid") String ppxiangmuId,  @Param("startindex") int ppStartIndex, @Param("pagesize") int ppPageSize);

    Object getHaocaiyinjinlist(@Param("xiangmuid") String ppxiangmuId,@Param("startindex") int ppStartIndex, @Param("pagesize") int ppPageSize);

    List<Map<String, Object>> findBiaojuelist(@Param("xiangmuid") String mmxiangmuId,
                                              @Param("userid") String mmuserId);


    List<Map<String, Object>> findPinzhongAndPinpaiByXiangmuId(@Param("xiangmuid") String mmxiangmuId);

    List<Map<String, Object>> findPinguiResult(@Param("xiangmuid") String mmxiangmuId);

    int countByExample(HaocaiyinjinExample example);

    int deleteByExample(HaocaiyinjinExample example);

    int insert(Haocaiyinjin record);

    int insertSelective(Haocaiyinjin record);

    List<Haocaiyinjin> selectByExample(HaocaiyinjinExample example);

    int updateByExampleSelective(@Param("record") Haocaiyinjin record, @Param("example") HaocaiyinjinExample example);

    int updateByExample(@Param("record") Haocaiyinjin record, @Param("example") HaocaiyinjinExample example);
}